public class Test09{
    public static void main(String[] args){
        Runnable oddNumber = new Runnable(){
        @Override
        public void run(){
            for(int i=1;i<=50;i+=2){
                System.out.println("oddNumber" + i);

            }

        }
        };
        Thread t1 = new Thread(oddNumber);
        t1.start();
        Runnable evenNumber = new Runnable(){
        @Override
        public void run(){
            for(int i=2;i<=50;i+=2){
                System.out.println("evenNumber" + i);

            }

        }
        };
        Thread t2 = new Thread(evenNumber);
        t2.start();
}
}